Skip to content

feat: One Piece themed visual effects — Three.js particle ocean + user toggle#27

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/add-one-piece-backgrounds-visual-effects
Draft

feat: One Piece themed visual effects — Three.js particle ocean + user toggle#27
Copilot wants to merge 3 commits intomainfrom
copilot/add-one-piece-backgrounds-visual-effects

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 26, 2026

Adds an optional animated background layer to reinforce the One Piece theme: a Three.js particle system simulating floating ocean debris (bubbles, sea foam, treasure sparks) over a deep-ocean gradient, with a persistent user toggle.

Changes

static/js/ocean-fx.js (new)

  • 180 THREE.Points particles with a One Piece palette (ocean blues, cyan, gold, Luffy-red, white)
  • Particles float upward with sinusoidal horizontal sway; wrap at top edge for continuous flow
  • Scene rotates gently on Y-axis for depth
  • Toggle state persisted in localStorage (op_fx_enabled), enabled by default
  • Graceful no-op if THREE global is unavailable (CDN blocked, etc.)

static/css/custom.css

  • body gets a dark ocean gradient (#080e1a → #0b1828 → #091422)
  • #op-fx-canvas: fixed, full-screen, z-index: -1, pointer-events: none
  • #op-fx-toggle: frosted-glass circular button (bottom-left), backdrop-filter: blur(6px), hover scale animation

templates/base.html

  • <canvas id="op-fx-canvas" aria-hidden="true"> injected at top of <body>
  • Floating ✨/💤 toggle button — switches icon and starts/destroys the Three.js renderer
  • Three.js r0.128 loaded from cdn.jsdelivr.net (already CSP-whitelisted); ocean-fx.js loaded at end of body

e2e/tests/visual-effects.spec.ts (new)

  • 6 Playwright tests: button visibility, default-enabled state, toggle off/on, localStorage persistence, cross-page persistence

Screenshot

Visual effects — ocean gradient + toggle button

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cdn.jsdelivr.net
    • Triggering command: /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1208/chrome-headless-shell-linux64/chrome-headless-shell /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1208/chrome-headless-shell-linux64/chrome-headless-shell --disable-field-trial-config --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AvoidUnnecessaryBeforeUnloadCheckSync,BoundaryEventDispatchTracksNodeRemoval,DestroyProfileOnBrowserClose,DialMediaRouteProvider,GlobalMediaControls,HttpsUpgrades,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Transl (dns block)
  • unpkg.com
    • Triggering command: /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1208/chrome-headless-shell-linux64/chrome-headless-shell /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1208/chrome-headless-shell-linux64/chrome-headless-shell --disable-field-trial-config --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AvoidUnnecessaryBeforeUnloadCheckSync,BoundaryEventDispatchTracksNodeRemoval,DestroyProfileOnBrowserClose,DialMediaRouteProvider,GlobalMediaControls,HttpsUpgrades,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Transl (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add more One Piece atmosphere with backgrounds and visual effects feat: One Piece themed visual effects — Three.js particle ocean + user toggle Mar 26, 2026
Copilot AI requested a review from Yunaido March 26, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants